#include "OthelloGameFactory.h"
#include "../framework/ChessProtoManager.h"
#include "OthelloChess.h"
#include "OthelloChessBoard.h"
#include "../framework/ChessBoardImp1.h"
#include "../framework/ChessBoardImp2.h"
#include "OthelloPlayer.h"
#include "OthelloGameRule.h"
OthelloGameFactory::OthelloGameFactory()
{
}

ChessBoard* OthelloGameFactory::createChessBoard(){
    ChessProtoManager<OthelloChess>::registerAllChess("chess.xml");
    ChessBoard* board = new OthelloChessBoard(new ChessBoardImp1("chessboard.xml"));
    board->initialBoard();
    return board;
}
Player* OthelloGameFactory::createPlayer(){
    return new OthelloPlayer;
}
GameRule* OthelloGameFactory::createGameRule(){
    return new OthelloGameRule;
}
